package com.sqq.web;

import com.jfinal.core.Controller;
import com.jfinal.ext.route.ControllerBind;
import com.sqq.model.a.WeixinModel;

@ControllerBind(controllerKey = "/test")
public class TestController extends Controller {
    public void index() {
        renderText("index.shtml");
    }
    
    public void stat(){
        WeixinModel byNickName = WeixinModel.getByNickName("互联港湾");
        renderJson(byNickName);
    }
    
    public void list(){
        renderJson(WeixinModel.list());
    }
    
    public void list2(){
        renderJson(WeixinModel.list2());
    }
}
